FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
diffpy.structure/src/diffpy/structure/structure_app.py at main · diffpy/diffpy.structure · GitHub
diffpy
diffpy.structure
Repository navigation
Code
Issues
9
(9)
Pull requests
1
(1)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
diffpy.structure
/
src
/
diffpy
/
structure
/
structure_app.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (25 loc) · 820 Bytes
Breadcrumbs
diffpy.structure
/
src
/
diffpy
/
structure
/
structure_app.py
Copy path
File metadata and controls
33 lines (25 loc) · 820 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import
argparse
from
diffpy
.
structure
.
version
import
__version__
# noqa
def
main
():
parser
=
argparse
.
ArgumentParser
(
prog
=
"diffpy.structure"
,
description
=
(
"Crystal structure container and parsers for structure formats.
\n
\n
"
"For more information, visit: "
"https://github.com/diffpy/diffpy.structure/"
),
formatter_class
=
argparse
.
RawDescriptionHelpFormatter
,
)
parser
.
add_argument
(
"--version"
,
action
=
"store_true"
,
help
=
"Show the program's version number and exit"
,
)
args
=
parser
.
parse_args
()
if
args
.
version
:
print
(
f"diffpy.structure
{
__version__
}
"
)
else
:
# Default behavior when no arguments are given
parser
.
print_help
()
if
__name__
==
"__main__"
:
main
()
Back
|
FazBrowse Home
|
New Git URL