larryhastings / appeal

Command-line parsing library for Python 3.
Other
122 stars 7 forks source link

"--" can not be passed as argument #17

Open rschmidtner opened 5 months ago

rschmidtner commented 5 months ago

Why does python script.py f "--" not work?

# script.py
import appeal

app = appeal.Appeal()

@app.command()
def f(a):
    print(f"Received the following parameters:")
    for key, value in locals().items():
        print(f"  name: {key}")
        print(f"    value: {value}")
        print(f"    type: {type(value)}")

if __name__ == "__main__":
    app.main()