Skip to content

Commit

Permalink
Populate ArgumentParser 'description' field in generated programs
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknyquist committed Oct 12, 2023
1 parent 25b9338 commit 0f88851
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion duckargs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import argparse
def main():
parser = argparse.ArgumentParser(description='',
parser = argparse.ArgumentParser(description='A command-line program generated by duckargs',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
{1}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/choices/expected_python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse

def main():
parser = argparse.ArgumentParser(description='',
parser = argparse.ArgumentParser(description='A command-line program generated by duckargs',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)

parser.add_argument('pos1', help='a string')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/flags_only/expected_python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse

def main():
parser = argparse.ArgumentParser(description='',
parser = argparse.ArgumentParser(description='A command-line program generated by duckargs',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)

parser.add_argument('-a', action='store_true', help='a flag')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/many_opts/expected_python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse

def main():
parser = argparse.ArgumentParser(description='',
parser = argparse.ArgumentParser(description='A command-line program generated by duckargs',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)

parser.add_argument('pos1', help='a string')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/normalize_names/expected_python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse

def main():
parser = argparse.ArgumentParser(description='',
parser = argparse.ArgumentParser(description='A command-line program generated by duckargs',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)

parser.add_argument('-a', '--test_1', default=5464, type=int, help='an int value')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/options_only/expected_python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse

def main():
parser = argparse.ArgumentParser(description='',
parser = argparse.ArgumentParser(description='A command-line program generated by duckargs',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)

parser.add_argument('-a', default=4, type=int, help='an int value')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/positional_only/expected_python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse

def main():
parser = argparse.ArgumentParser(description='',
parser = argparse.ArgumentParser(description='A command-line program generated by duckargs',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)

parser.add_argument('pos1', help='a string')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/readme_example/expected_python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse

def main():
parser = argparse.ArgumentParser(description='',
parser = argparse.ArgumentParser(description='A command-line program generated by duckargs',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)

parser.add_argument('positional_arg1', help='a string')
Expand Down

0 comments on commit 0f88851

Please sign in to comment.