Nick Tobey
ebcaabc5b4
Rename ArgParser.TooManyArgsError to TooManyArgsErrorFunc
2023-04-19 11:36:18 -07:00
Nick Tobey
c0a8cb33d2
Fix typo in parser.go error string.
2023-04-18 11:49:35 -07:00
Nick Tobey
19ef9a1d21
ArgParser now takes the name of the command being parsed.
...
This allows us to print the command name in error messages and disambiguate cases where `dolt_sql` calls a procedure that corresponds to another dolt command.
2023-04-18 11:45:58 -07:00
Nick Tobey
6b2bec33b3
Allow any number of arguments when MaxArgs is set to -1.
2023-04-14 15:23:54 -07:00
Nick Tobey
b6abad268b
Allow commands to specify a more helpful error message when too many args are passed.
2023-04-14 14:45:11 -07:00
Nick Tobey
9fad10d8fe
Replace argparser.NewArgParser with NewArgParserWithMaxArgs and NewArgParserWithVariableArgs
...
This requires commands to specify the max number of positional arguments they expect.
This makes it harder to accidentally accept extra arguments and ignore them.
2023-04-14 10:18:33 -07:00
Jason Fulghum
6f3f182296
Removing newline
2022-11-30 10:29:33 -08:00
Tan Yong Zhi
a3d471612e
Swap long and short form flag behavior
2022-11-30 13:43:37 +08:00
Tan Yong Zhi
f654cee95d
Fix value being read in param suffix
2022-11-29 17:26:06 +08:00
Zach Musgrave
04dec6e54c
Added alias for renamed option
2022-11-14 15:23:22 -08:00
Taylor Bantle
f7246f854b
Supply multiple refs to --not
2022-11-02 13:39:38 -07:00
jennifersp
f42712b240
allow optional empty value for string value for arg parsing ( #4093 )
...
* arg value should allow optional empty value
* fix godocs
2022-08-15 20:05:44 -07:00
Aaron Son
84c3066348
go/**/*.go: Update copyright headers for company name change.
2020-11-02 10:17:02 -08:00
Andy Arthur
a17914549d
ugh parsing
2020-05-21 16:56:27 -05:00
Andy Arthur
7286431588
fixed help flag
2020-05-21 15:52:21 -05:00
Andy Arthur
c52d3bdc54
repo fmt
2020-05-21 14:59:35 -05:00
Andy Arthur
48533f66e4
updated parsing
2020-05-21 14:43:59 -05:00
Andy Arthur
85e94a2d7f
better arg parsing
2020-05-20 18:16:34 -05:00
Brian Hendriks
c8436c1721
Help Fix ( #576 )
2020-04-14 13:18:27 -07:00
Brian Hendriks
e3d42d5ee5
Multi DB ( #517 )
2020-04-09 15:07:52 -07:00
Brian Hendriks
7d89aec0d2
dumps docs ( #301 )
...
* refactor commands
* dump docs
2020-01-20 23:46:36 -08:00
Matt Jesuele
d2f5d9a592
go/libraries/utils/argparser/parser.go: Clean up Parse and fix handling of -- passed as commit spec
2019-10-24 13:58:32 -07:00
Aaron Son
732086a9c7
dolt/go: Add copyright notices to every file. For files from noms, retain and reference the previous copyright notice as well.
2019-07-22 17:06:35 -07:00
Brian Hendriks
d49955d7bd
dbfactory
2019-06-11 14:47:56 -07:00
Matt Jesuele
99df251ca9
dolt/go: Add branch -D flag as abbreviation for --delete --force
2019-04-03 11:11:31 -07:00
Zach Musgrave
5128323c45
Fixed panic on empty strings as arguments -- now just passed through to the command
2019-03-21 14:46:37 -07:00
Zach Musgrave
7f03493bbd
Added docs to parser methods and fixed a few errors constructing error strings.
2019-03-12 16:10:02 -07:00
Brian Hendriks
2f59fb8284
Bh/fix add field ( #590 )
...
* fix dolt schema --add-field
* bump version
2019-03-05 15:04:40 -08:00
Brian Hendriks
dafab3984b
Package refactor and document ( #248 )
2019-01-09 10:25:06 -08:00